﻿using KouDai.Core.ViewModel;
using KouDai.Phone.Common;
using System;

namespace KouDai.Phone.Views
{
    public partial class ItemDetailPage : PhoneAwarePage
    {

        private ItemDetailViewModel _itemDetailViewModel;

        public ItemDetailPage()
        {
            InitializeComponent();
            _itemDetailViewModel = this.DataContext as ItemDetailViewModel;
        }

        protected override async void InitData()
        {
            await _itemDetailViewModel.GetItems();
        }

        protected override void ReLoadData()
        {
            base.ReLoadData();
        }
    }
}